FLASH : "**错误** 场景=场景 1, 图层=代码, 帧=2:第 13 行: 遇到意外的 '}'“是何

来源:百度知道 编辑:UC知道 时间:2024/06/15 10:08:33
Function ee(){
duplicateMovieClip("mc", "c", c);
setProperty("c", _x, "random(550)");
setProperty("c", _y, "random(-300)+100");
setProperty("c", _xscale, "random40)+60");
setProperty("c", _yscale, "random(40)+60");
setProperty("c", _alpha, "random(50)+50");
setProperty("c", _rotation, "random(-100)+80");
c++:
if (c>1000) {
clearInterval(kk)
}
}
kk=setInterval(ee,80)

function ee() {
duplicateMovieClip("mc", "c", c);
setProperty("c", _x, "random(550)");
setProperty("c", _y, "random(-300)+100");
setProperty("c", _xscale, "random40)+60");
setProperty("c", _yscale, "random(40)+60");
setProperty("c", _alpha, "random(50)+50");
setProperty("c", _rotation, "random(-100)+80");
c++;
if (c>1000) {
clearInterval(kk);
}
}
kk = setInterval(ee, 80);

改成这样就对了,Function是小写function,c++;后面是分号,你写成冒号了。

c++后面应该是分号。修改了应该就好了

yy